package me.yricky.mayu.ui.fasta

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import me.yricky.mayu.utils.asList
import me.yricky.mayu.utils.fasta.Parser

/**
 * @author Yricky
 * @date 2022/4/14
 */
class FastaSeqModel{
    var name by mutableStateOf("FastaSequence")
    val seq = mutableStateListOf<Char>()
    var parser: Parser by mutableStateOf(
        if(seq.firstOrNull() == 'M'){
            Parser.PParser
        }else{
            Parser.NAParser
        }
    )
}


